Fixed a Typo again.

This commit is contained in:
Batuhan Berk Başoğlu 2020-11-14 20:43:56 -05:00
parent 87dec86a71
commit 3193e4d438

View file

@ -9,7 +9,7 @@ def start():
users = DBHelper.db.child("Users").get() users = DBHelper.db.child("Users").get()
try: try:
for x in users.each(): for x in users.each():
count = +1 count += 1
for y in range(20): for y in range(20):
if not os.path.isdir("Facial_images/face_rec/train/User_" + str(count)): if not os.path.isdir("Facial_images/face_rec/train/User_" + str(count)):
os.makedirs("Photos_of_Users/User_" + str(count)) os.makedirs("Photos_of_Users/User_" + str(count))
@ -19,7 +19,7 @@ def start():
count = 0 count = 0
try: try:
for x in users.each(): for x in users.each():
count = +1 count += 1
for y in range(20): for y in range(20):
if not os.path.isdir("Photos_of_Thieves/Thief_" + str(count)): if not os.path.isdir("Photos_of_Thieves/Thief_" + str(count)):
os.makedirs("Photos_of_Thieves/Thief_" + str(count)) os.makedirs("Photos_of_Thieves/Thief_" + str(count))