Skip to content

Commit

Permalink
Refactoring after review
Browse files Browse the repository at this point in the history
  • Loading branch information
v.filatov committed Jan 23, 2025
1 parent d690d14 commit 82cc4ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion sportorg/libs/sfr/sfrximporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def import_sfrx(source):
obj.data.title = settings["title"]
obj.data.location = settings["location"]


for course in iter(sfr_csv.dists.values()):
name = course["name"]
bib = convert_bib(course["bib"])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sfrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_import_sfrx():
assert person.group.name == "М14", "Group name error"
assert isinstance(person.organization, Organization), "Not organization"
assert (
person.organization.name == "СДЮСШ Балт. берег Peterhof"
person.organization.name == "СДЮСШ Балт. берег Peterhof"
), "Organization name error"
assert person.get_year() == 2009, "Year error"
assert person.card_number == 0, "Card number error"
Expand Down

0 comments on commit 82cc4ce

Please sign in to comment.