Commit ca01f51e authored by echel0n's avatar echel0n
Browse files

Added code to fix null last_xem_refresh columns

parent e7384019
...@@ -224,6 +224,7 @@ class MainDB(SRDatabase): ...@@ -224,6 +224,7 @@ class MainDB(SRDatabase):
session.query(self.TVShow).filter_by(anime=None).update({'anime': False}) session.query(self.TVShow).filter_by(anime=None).update({'anime': False})
session.query(self.TVShow).filter_by(flatten_folders=None).update({'flatten_folders': False}) session.query(self.TVShow).filter_by(flatten_folders=None).update({'flatten_folders': False})
session.query(self.TVShow).filter_by(paused=None).update({'paused': False}) session.query(self.TVShow).filter_by(paused=None).update({'paused': False})
session.query(self.TVShow).filter_by(last_xem_refresh=None).update({'last_xem_refresh': datetime.datetime.now().toordinal()})
session.commit() session.commit()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment