Skip to content

Commit

Permalink
Merge pull request #9 from akirosingh/6b16471
Browse files Browse the repository at this point in the history
Implementing is_mirror
  • Loading branch information
lemeryfertitta authored Dec 8, 2023
2 parents 41e6346 + 96540ac commit e17a2bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To download your logbook entries for a given board:
This outputs a CSV file with the following fields:

```json
["board", "angle", "name", "date", "grade", "tries"]
["board", "angle", "name", "date", "grade", "tries", "is_mirror"]
```

For example, the command
Expand All @@ -25,10 +25,10 @@ For example, the command
would output a file named `moon2017.csv` with the following contents:

```
board,angle,name,date,grade,tries
moon2017,40,C3PO,2021-07-13,V5,1
moon2017,40,LITTLE BLACK SUBMARINE,2021-07-13,V5,2
moon2017,40,MOUNTAIN GOAT HARD,2021-07-13,V5,1
board,angle,name,date,grade,tries, is_mirror
moon2017,40,C3PO,2021-07-13,V5,1, False
moon2017,40,LITTLE BLACK SUBMARINE,2021-07-13,V5,2, False
moon2017,40,MOUNTAIN GOAT HARD,2021-07-13,V5,1, False
...
```

Expand Down
1 change: 1 addition & 0 deletions src/boardlib/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"date",
"grade",
"tries",
"is_mirror"
)


Expand Down
1 change: 1 addition & 0 deletions src/boardlib/api/aurora.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def logbook_entries(board, username, password, grade_type="font"):
else boardlib.util.grades.FONT_TO_HUECO[font_grade]
),
"tries": attempt_id if attempt_id else raw_entry["bid_count"],
"is_mirror": raw_entry["is_mirror"]
}


Expand Down
1 change: 1 addition & 0 deletions src/boardlib/api/moon.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def logbook_entries(board, username, password, grade_type="font"):
else boardlib.util.grades.FONT_TO_HUECO[font_grade]
),
"tries": ATTEMPTS_TO_COUNT[entry["NumberOfTries"]],
"is_mirror" : False
}


Expand Down

0 comments on commit e17a2bc

Please sign in to comment.