Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: renamed events to user_events, fixes missing #178

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/nytid/cli/hr.nw
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def cli_amanuens_create(<<option for TAs to filter for>>,
<<skip if [[user_regex]] doesn't match [[user]]>>
<<print [[amanuensis]] data for [[user]]>>
if not draft:
<<store [[events]] in CSV format>>
<<store [[user_events]] in CSV format>>
<<option [[draft]] to not store contract>>=
draft: Annotated[bool, draft_opt] = False
<<argument and option definitions>>=
Expand Down Expand Up @@ -794,7 +794,7 @@ We'll store the data in a file named after the TA and the current time.
<<amanuensis iteration variables>>=
path = pathlib.Path("./")
<<set [[path]] to configured path for storing contracts>>
<<store [[events]] in CSV format>>=
<<store [[user_events]] in CSV format>>=
filename = f"{user}.{datetime.datetime.now().isoformat()}.json"

path.mkdir(parents=True, exist_ok=True)
Expand All @@ -807,7 +807,7 @@ with open(path / filename, "w") as outfile:
"end": end.isoformat() if end else None,
"set_end": set_end.isoformat() if set_end else None,
"course_regex": course_regex,
"events": events},
"events": user_events},
outfile,
indent=2)
@
Expand Down