to parse the right URI (eg. SCDDB.list_from_uri https://my.strathspey.org/dd/list/31792/ returns `Ok 31792)
This MR replaces previous uses of string manipulations in the client by calls to functions in this module. The parser is not used yet but will be soon when we allow adding ids for eg. credits.
In GitLab by @Niols on Feb 4, 2022, 22:16
Merges niols/scddb-module -> master
This MR introduces a module
Dancelor_common.SCDDB
containing helper functions for each type of entry in the SCDDB. These functions allow:SCDDB.list_uri 31792
returns https://my.strathspey.org/dd/list/31792/)SCDDB.list_from_uri https://my.strathspey.org/dd/list/31792/
returns `Ok 31792)This MR replaces previous uses of string manipulations in the client by calls to functions in this module. The parser is not used yet but will be soon when we allow adding ids for eg. credits.