Skip to content

Commit

Permalink
Update DB.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tylous authored Oct 5, 2018
1 parent 4e11063 commit 8a9a809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def sharetable(user, share_db):
cl.reset_index ( inplace=True )
del cl['index']
cl.to_sql ( user, connection, index=False, if_exists="append" )
cleanup = dp.read_sql("'select * from '{}'".format(user), connection).drop_duplicates()
cleanup = dp.read_sql("select * from '{}'".format(user), connection).drop_duplicates()
cleanup.to_sql(user, connection, index=False, if_exists="replace")

def fileshare():
Expand Down

0 comments on commit 8a9a809

Please sign in to comment.