Skip to content
Snippets Groups Projects
Commit 2f571bcb authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

get_no() index is off by 1

parent 4de3064e
No related branches found
No related tags found
No related merge requests found
......@@ -775,7 +775,7 @@ class Utils:
def get_no(self, doc):
if "Planning" in doc:
no = doc.get("_id").split("-")[3]
no = doc.get("_id").split("-")[4]
if len(no) == 3:
return no
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment