Skip to content

Commit

Permalink
main_router.py: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mettta committed Nov 13, 2023
1 parent 6964e09 commit aa60c90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions strictdoc/server/routers/main_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,15 +999,16 @@ def get_edit_requirement(requirement_id: str):
)

@router.get(
"/reset_uid", response_class=Response,
"/reset_uid",
response_class=Response,
)
def reset_uid(reference_mid: str):
reference_node = export_action.traceability_index.get_node_by_mid(
MID(reference_mid)
)

assert isinstance(reference_node, Requirement) # FIXME: it might as well be a section?
requirement: Requirement = reference_node
assert isinstance(reference_node, Requirement)
# FIXME: it might as well be a section?

document_tree_stats: DocumentTreeStats = (
DocumentUIDAnalyzer.analyze_document_tree(
Expand Down

0 comments on commit aa60c90

Please sign in to comment.