add: document which fn use globals

pull/6/head
rrr-marble 5 years ago
parent a84bea8611
commit f0dc16927f

@ -26,6 +26,7 @@ def process_pictures():
Place the resized copies to DEST_STRUNK and
move the originals to DEST_ORIGINAL.
Return a dict for each image processed for database collection.
Uses: DEST_STRUNK, DEST_ORIGINAL
"""
# walk every pic
# We only care about files in the root of the path
@ -68,6 +69,7 @@ def process_pictures():
def update_database():
"""Append new image information to the existing database
or create a new one, if it does not exist yet
Uses: DB_LOCATION
"""
# make sure the database exists
check_database(DB_LOCATION)
@ -103,7 +105,7 @@ def check_database(database_path: str):
)"""
)
con.commit()
# we only use this occasionaly with the new databases,
# we only use this occasionaly with new databases,
# so don't bother with transfer logic, just close and reopen it later
con.close()

Loading…
Cancel
Save