Skip to content

Commit

Permalink
Merge pull request #283 from Windham-High-School/release-1.6.8
Browse files Browse the repository at this point in the history
Release 1.6.8
  • Loading branch information
snorklerjoe authored May 22, 2023
2 parents 9136ade + a8d5b14 commit fa80e42
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/CubeServer-api/cubeserver_api/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.7"
__version__ = "1.6.8"
2 changes: 1 addition & 1 deletion src/CubeServer-app/cubeserver_app/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.7"
__version__ = "1.6.8"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.7"
__version__ = "1.6.8"
2 changes: 1 addition & 1 deletion src/CubeServer-common/cubeserver_common/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.7"
__version__ = "1.6.8"
10 changes: 5 additions & 5 deletions src/CubeServer-common/cubeserver_common/models/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ def collect_avg(cls) -> ReferencePoint:
def get_window_point(cls, window: int) -> ReferencePoint:
"""Returns the most recent reference point in the db if it falls within the time window of now in seconds"""
logging.debug("Getting a reference point within " + str(window) + " seconds...")
most_recent = ReferencePoint.find_most_recent()
logging.debug(most_recent)
elapsed = datetime.now() - most_recent.moment
if elapsed.total_seconds() <= window:
return most_recent
#most_recent = ReferencePoint.find_most_recent()
#logging.debug(most_recent)
#elapsed = datetime.now() - most_recent.moment
#if elapsed.total_seconds() <= window:
# return most_recent
return cls.collect(Team.find_references()[0]) # If it's too old, grab a new point

1 change: 1 addition & 0 deletions tools/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.6.6-dev
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.7
1.6.8

0 comments on commit fa80e42

Please sign in to comment.