-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
s6: two new commands for map handling #608
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -540,6 +540,21 @@ def get_room_mapping(self): | |
"""Retrieves a list of segments.""" | ||
return self.send("get_room_mapping") | ||
|
||
@command() | ||
def get_recover_maps(self): | ||
"""Get recover maps.""" | ||
return self.send("get_recover_maps") | ||
|
||
@command( | ||
click.argument("id"), | ||
click.argument("map"), | ||
) | ||
def recover_map(self, id: int, map: int): | ||
"""Set recover maps.""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Example:
returns:
I named the first number (1,2,3) as id and the second (1575723134,1577540948, 1577807926) as map So in my case the command:
sets the initial (not edited) map as active:
sets the oldest backup map (the one from 2019.12.28 14:49, at the very bottom of the screeny, map not fully visible) as active:
sets the other backup map (the one from 2019.12.31 16:58) as active: So I suggest to name it |
||
payload = [int(id), int(map)] | ||
click.echo("Setting the map %s as active" % payload) | ||
return self.send("recover_map", payload)[0] | ||
|
||
@command() | ||
def get_segment_status(self): | ||
"""Get the status of a segment.""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
get_saved_maps
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually its more like recover or backup maps than real saved maps. There is the current map and two backup maps, like this: