|
|
|
|
@ -113,10 +113,18 @@ def main():
|
|
|
|
|
usage()
|
|
|
|
|
exit(1)
|
|
|
|
|
|
|
|
|
|
pics_processed = 0
|
|
|
|
|
# process each pic and add it to the database
|
|
|
|
|
for pic in process_pictures():
|
|
|
|
|
update_database()
|
|
|
|
|
print(pic) # just print into strout for now
|
|
|
|
|
pics_processed += 1
|
|
|
|
|
|
|
|
|
|
if pics_processed == 0:
|
|
|
|
|
print("No more pictures processed from", argv[1])
|
|
|
|
|
print("Do we have enough permissions?")
|
|
|
|
|
else:
|
|
|
|
|
print("Pictures processed:", pics_processed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|