From 50905a6d971ad6b995a957fc7b986101beb173fa Mon Sep 17 00:00:00 2001 From: jdhruv1503 <85164089+jdhruv1503@users.noreply.github.com> Date: Thu, 19 Aug 2021 23:42:06 +0530 Subject: [PATCH] Delete createDefaultFiles.py --- createDefaultFiles.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 createDefaultFiles.py diff --git a/createDefaultFiles.py b/createDefaultFiles.py deleted file mode 100644 index 7d93adb..0000000 --- a/createDefaultFiles.py +++ /dev/null @@ -1,30 +0,0 @@ -import pickle -import csv - -fileO = open("workerlog.dat", "wb") -dicta = {'Om Shinde': 7, 'Shivansh Raj': 9, 'Vishwa Patel': 0, 'Atharva Deshmukh': 3, 'Alika Ramchandran': 0, 'Janvee Jerukar': 4, 'Ranghunadan Sreenidhi': 5} -pickle.dump(dicta, fileO) -fileO.close() - -fileO = open("prices.dat", "wb") -dicta = {'GPU': 14499, 'RAM': 7599, 'HDD': 3599, 'Monitor': 13679, 'Printer': 8099, 'Mouse': 799, 'Keyboard': 549, 'Router': 6999, 'UPS': 12999} -pickle.dump(dicta, fileO) -fileO.close() - -fileO = open("stock.dat", "wb") -dicta = {'GPU': 230, 'RAM': 129, 'HDD': 0, 'Monitor': 57, 'Printer': 92, 'Mouse': 309, 'Keyboard': 285, 'Router': 0, 'UPS': 56} -pickle.dump(dicta, fileO) -fileO.close() - -fileO = open("vehicles.dat", "wb") -intA = 4 -pickle.dump(intA, fileO) -fileO.close() - -fileO = open("logins.csv", "w", newline='') -writer = csv.DictWriter(fileO, fieldnames=['Username', 'Password']) -writer.writeheader() -writer.writerow({'Username': 'Akash', 'Password': 'warehouse.password@admin1'}) -writer.writerow({'Username': 'Bhumika', 'Password': 'whm.pass_admin2'}) -writer.writerow({'Username': 'Anant', 'Password': 'Anant_pass'}) -fileO.close()