Skip to content

Commit

Permalink
fix: remove invalid copy of get_number_of_posts
Browse files Browse the repository at this point in the history
  • Loading branch information
osoken committed Aug 18, 2024
1 parent b045ec1 commit bbed0ef
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions common/birdxplorer_common/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,16 +322,6 @@ def get_number_of_posts(
query = query.filter(PostRecord.text.like(f"%{search_text}%"))
return query.count()

def get_number_of_posts(
self,
post_ids: Union[List[PostId], None] = None,
note_ids: Union[List[NoteId], None] = None,
start: Union[TwitterTimestamp, None] = None,
end: Union[TwitterTimestamp, None] = None,
search_text: Union[str, None] = None,
) -> int:
raise NotImplementedError


def gen_storage(settings: GlobalSettings) -> Storage:
engine = create_engine(settings.storage_settings.sqlalchemy_database_url)
Expand Down

0 comments on commit bbed0ef

Please sign in to comment.