Skip to content

Commit

Permalink
fix: remove walrus and regress to python 3.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrcook committed Mar 13, 2021
1 parent bd466db commit 9d11805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"python.pythonPath": ".env/bin/python3.9",
"python.pythonPath": ".env/bin/python3",
"python.formatting.provider": "black"
}
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class CoffeeBag(KeyedModel):

def __init__(self, **data):
super().__init__(**data)
if not (key := data.get("key")) is None:
key = data.get("key")
if not key is None:
self._key = key


Expand All @@ -73,7 +74,8 @@ class CoffeeUse(KeyedModel):
def __init__(self, **data):
super().__init__(**data)
self._seconds = unix_time_millis(self.datetime)
if not (key := data.get("key")) is None:
key = data.get("key")
if not key is None:
self._key = key


Expand Down

0 comments on commit 9d11805

Please sign in to comment.