Skip to content

Commit

Permalink
fix: unknown import
Browse files Browse the repository at this point in the history
  • Loading branch information
pxseu committed Oct 29, 2022
1 parent b41efe3 commit e2efc54
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions anilist_readme/list_activity.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from datetime import datetime, tzinfo
from enum import auto, Enum
from typing import Optional

import pytz
from dateutil import tz

from .config import EMOJI_DICT

Expand All @@ -29,13 +28,13 @@ class ListActivity:
def __init__(
self,
activity_data: dict,
tz: str,
timezone: str,
preferred_lang: Language,
format_date: str,
) -> None:
self.type: str = activity_data["type"]
self.created_at = custom_datetime_format(
dt=datetime.fromtimestamp(activity_data["createdAt"], pytz.timezone(tz)),
dt=datetime.fromtimestamp(activity_data["createdAt"], tz.gettz(timezone)),
format_date=format_date,
)
self.progress: str = activity_data["progress"]
Expand Down

0 comments on commit e2efc54

Please sign in to comment.