Updating string format synatx part 3

This commit is contained in:
Mouse Reeve
2021-09-20 16:44:59 -07:00
parent cf3157a3b5
commit ea303fb285
6 changed files with 22 additions and 17 deletions

View File

@ -20,8 +20,8 @@ status_types = [
"generatednote",
]
status_types_string = "|".join(status_types)
STATUS_PATH = rf"{USER_PATH}/({status_types_string})/(?P<status_id>\d+)"
STATUS_TYPES_STRING = "|".join(status_types)
STATUS_PATH = rf"{USER_PATH}/({STATUS_TYPES_STRING})/(?P<status_id>\d+)"
BOOK_PATH = r"^book/(?P<book_id>\d+)"