Skip to content

Commit

Permalink
Fixed Linting Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazan10x committed Nov 24, 2023
1 parent 3c78301 commit 9ba48f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion backend/models/transportation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from __future__ import annotations
from typing import Union
import json
from datetime import datetime, timezone, timedelta
from datetime import datetime, timezone
from models.abstract_db_model import DB_MODEL
from bson import ObjectId
from bson import json_util
Expand Down
1 change: 0 additions & 1 deletion backend/routes/transportation.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def create_transportation(user_id: ObjectId) -> Response:
@carbon_auth.auth.login_required
def update_transportation(oid: str) -> Response:
query = {"_id": ObjectId(oid)}
x = request.get_json()
transportation: dict = TransportationEntry.from_json(request.get_json()['transportation']).to_json(for_mongodb=True)
del transportation['_id']
del transportation['date']
Expand Down
1 change: 0 additions & 1 deletion backend/utils/FirebaseAPI.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Optional
from pprint import pprint
import flask
import firebase_admin
from firebase_admin import credentials, auth
from models.user import User
Expand Down

0 comments on commit 9ba48f9

Please sign in to comment.