Commit 23550fe8 authored by Gerion Entrup's avatar Gerion Entrup
Browse files

actually write to database

parent 8b4899ad
......@@ -122,8 +122,6 @@ class Collector:
def fetch_recording(self, mbid):
recording = self.session.query(Recording).filter_by(gid=mbid).first()
print(recording)
if recording is None:
result = self.fetcher.get_table_by_id(mbid, 'recording')
......
......@@ -41,6 +41,7 @@ class Main:
translator = Translator(self.session)
self.session.commit()
self.session.close()
if __name__ == "__main__":
......
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