Skip to content

Commit

Permalink
fix: small fixes to pass quality
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Nov 8, 2024
1 parent 4bd9f99 commit 1c9a553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/editor/controllers/node_controller.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import logging

from openfoodfacts_taxonomy_parser import utils as parser_utils
Expand Down Expand Up @@ -38,7 +39,7 @@ async def create_entry_node(
"id": language_code + ":" + normalized_name,
f"tags_{language_code}": [name],
f"tags_ids_{language_code}": [normalized_name],
f"modified": datetime.datetime.now().timestamp(),
"modified": datetime.datetime.now().timestamp(),
}
params = {"entry_node": entry_node_data}

Expand Down
3 changes: 2 additions & 1 deletion backend/editor/entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import asyncio
import datetime
import logging
import shutil
import tempfile
Expand Down Expand Up @@ -32,7 +33,7 @@
TransactionCtx,
get_current_transaction,
)
from .models.node_models import EntryNode, EntryNodeCreate
from .models.node_models import EntryNode, EntryNodeCreate, NodeType
from .models.project_models import ProjectCreate, ProjectEdit, ProjectStatus
from .settings import EXTERNAL_TAXONOMIES

Expand Down

0 comments on commit 1c9a553

Please sign in to comment.