Skip to content

Commit

Permalink
refactor/fix(parser): swap arrow in favour of datetime in CO, etc. (#…
Browse files Browse the repository at this point in the history
…7630)

This commit replaces arrow, does some additional refactoring, and fixes
a small bug.

The bug was that the requested data was from a date determined by a
parser executing local datetime instead of the API local datetime.

The additional refactoring includes for example:
- De-nesting code under conditionals by raising an error early if
  needed under a conditional, but then de-nesting the other code block.
- Renaming local functions by prefixing them with an underscore
- Coalescing code that sometimes is run once and sometimes looped over
  by always looping (but sometimes only one iteration).

This commit was made without the ability to test the parser against the
API, as the API was down or wasn't accessible from Sweden.
  • Loading branch information
consideRatio authored Jan 1, 2025
1 parent bb90eed commit 1a03862
Showing 1 changed file with 132 additions and 173 deletions.
Loading

0 comments on commit 1a03862

Please sign in to comment.