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

WIP: Fix kassenbuch get_buchungen for microseconds #143

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

mgmax
Copy link
Member

@mgmax mgmax commented Aug 14, 2016

Using Datetime() in the SQLite query strips away the microseconds. SQLites cannot do datetime formatting for microseconds, even with strftime().

First workaround:
Discards all microseconds when filtering for a specific time range.

Problem:
This may create a race-condition if a booking is made at xxx.100 seconds and then kassenbuch show is called at xxx.200 sec, because the booking was made after xxx.000 sec
and the snapshot_time mechanism filters out the booking from the "future".

mgmax added 2 commits August 14, 2016 16:49
This commit just exposes the error and clarifies the type usage

travis will fail, so skip CI:
[CI skip]
From now on, kassenbuch discards all microseconds when filtering for a specific time range.

This may create a race-condition if a booking is made at xxx.100 seconds and then `kassenbuch show` is called at xxx.200 sec, because the booking was made after xxx.000 sec
and the `snapshot_time` mechanism filters out the booking from the "future".
@codecov-io
Copy link

codecov-io commented Aug 14, 2016

Current coverage is 28.33% (diff: 95.83%)

Merging #143 into development will increase coverage by 0.14%

@@           development       #143   diff @@
=============================================
  Files               54         54          
  Lines             6774       6789    +15   
  Methods              0          0          
  Messages             0          0          
  Branches             0          0          
=============================================
+ Hits              1910       1924    +14   
- Misses            4864       4865     +1   
  Partials             0          0          

Powered by Codecov. Last update 2017193...00a9448

@mgmax mgmax marked this pull request as draft December 26, 2022 15:54
Copy link

@dh4nav dh4nav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schaut gut aus, hab keine Probleme gefunden.

@dh4nav dh4nav marked this pull request as ready for review June 14, 2023 14:02
dh4nav
dh4nav previously approved these changes Jun 14, 2023
Copy link

@dh4nav dh4nav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schaut gut aus

@dh4nav dh4nav self-requested a review June 14, 2023 15:07
@dh4nav dh4nav dismissed their stale review June 14, 2023 15:10

error

dh4nav
dh4nav previously requested changes Jun 14, 2023
Copy link

@dh4nav dh4nav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

@dh4nav dh4nav dismissed their stale review June 14, 2023 15:12

error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants