Skip to content

Commit

Permalink
Make object_id unique so recents don't overwrite each other
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosseel committed Aug 12, 2024
1 parent 3fa735d commit 00378c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/PiFinder/pos_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from PiFinder.composite_object import CompositeObject, MagnitudeObject
from PiFinder.multiproclogging import MultiprocLogging
from skyfield.positionlib import position_of_radec
import sys

logger = logging.getLogger("PosServer")

Expand Down Expand Up @@ -154,6 +155,7 @@ def handle_goto_command(shared_state, ra_parsed, dec_parsed):
obj = CompositeObject.from_dict(
{
"id": -1,
"object_id": sys.maxsize-sequence,
"obj_type": "",
"ra": comp_ra,
"dec": comp_dec,
Expand Down

0 comments on commit 00378c4

Please sign in to comment.