Skip to content

Commit

Permalink
Merge pull request #5851 from drew2a/fix/5849
Browse files Browse the repository at this point in the history
Use mds instead of metadata_store
  • Loading branch information
drew2a committed Dec 14, 2020
2 parents f12c824 + 312d9e3 commit 2ef3edc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions experiment/popularity_community/initial_filling.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa
import argparse
import asyncio
import csv
Expand Down Expand Up @@ -54,8 +55,8 @@ def init_csv_writer(self):

@db_session
def get_torrents_info_tuple(self):
return count(ts for ts in self.metadata_store.TorrentState), \
count(ts for ts in self.metadata_store.TorrentState if ts.seeders > 0)
return count(ts for ts in self.mds.TorrentState), \
count(ts for ts in self.mds.TorrentState if ts.seeders > 0)

def check(self):
time_since_start = time.time() - self._start_time
Expand Down

0 comments on commit 2ef3edc

Please sign in to comment.