Skip to content

Commit

Permalink
update cre exporting method to support new export format not being an…
Browse files Browse the repository at this point in the history
… enum
  • Loading branch information
northdpole committed Aug 11, 2024
1 parent c1ab2f5 commit 47a7866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions application/tests/web_main_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from pprint import pprint
import io
import csv
import random
Expand Down Expand Up @@ -886,8 +887,8 @@ def test_get_cre_csv(self) -> None:

for i in range(4):
c = defs.CRE(
description=f"CREdesc{i}-{j}",
name=f"CREname{i}-{j}",
description=f"CREdesc{j}-{i}",
name=f"CREname{j}-{i}",
id=f"123-4{j}{i}",
)
dbcre = collection.add_cre(c)
Expand Down
2 changes: 1 addition & 1 deletion application/utils/spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def add_offset_cre(
rows = []

rows.append(
{f"CRE {offset}": f"{cre.id}{defs.ExportFormat.separator.value}{cre.name}"}
{f"CRE {offset}": f"{cre.id}{defs.ExportFormat.separator}{cre.name}"}
)
visited_cres.add(cre.id)
dbcre = database.get_CREs(external_id=cre.id)
Expand Down

0 comments on commit 47a7866

Please sign in to comment.