Skip to content

Commit

Permalink
Backend: Remove unused last_month variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rabinadk1 committed Apr 14, 2022
1 parent 293a2e7 commit c86acbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/app/tweets_common/helper_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import date
from typing import Callable, List, Optional, Collection, Tuple, TypeVar
from typing import Callable, Collection, List, Optional, Tuple, TypeVar

from fastapi import HTTPException
from pydantic import PositiveInt
Expand Down
7 changes: 2 additions & 5 deletions server/app/tweets_common/routes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import date, datetime, timedelta
from datetime import date
from typing import List, Optional

from nltk import FreqDist
from fastapi import Depends, Query
from nltk import FreqDist
from sqlmodel import Session, select, union_all

from ..database import get_session
Expand All @@ -23,9 +23,6 @@ def get_word_cloud(
"""
Get the word-count distribution within the given time range
"""
last_month = datetime.now() - timedelta(30)
print(last_month)

fields = ("text",)

tweet_selection = get_filtered_selection(topics, Tweet, day, month, fields)
Expand Down

0 comments on commit c86acbc

Please sign in to comment.