Skip to content

Commit 7be4917

Browse files
committed
added code docs in db table creation file
1 parent 2b689e0 commit 7be4917

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

db_table_creation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
db.execute("select exists(select * from information_schema.tables where table_name=%s)", ('recipes',))
15+
16+
# checking if table already exists then pass or create that table
1517
if db.fetchone()[0]:
1618
pass
1719
else:

0 commit comments

Comments
 (0)