Skip to content

Adding refresh_rates parameter #27

@eakasten

Description

@eakasten

I am trying to add refresh_schedule and refresh_rates to offline_map.offline_areas.create. The refresh_schedule="Weekly" sets the update for the offline area to weekly, but I can not figure out the format for the refresh_rates parameter. I have tried the following: {'weekday': 4, 'hour': 17, 'minute': 0}, {4, 17, 0}, "Thursday 17:00", and
{'weekday': 4,
'hour': 17,
'minute': 0
}

I have also assigned all of those to the variable map_refresh and then called refresh_rates=map_refresh. Sometimes the script fails giving the exception "MON", other times it runs but defaults to the refresh rate is always Monday at 3:00. Any insight on the formatting would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions