Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan33 authored Apr 28, 2024
1 parent 2fcb7f5 commit 61395c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/fill_db_ruslan.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@

base_url = "http://127.0.0.1:8000/api/cdb_rest"

# Create a global tag status object - this should be a VERY rare occurence
print("Create Global Tag Status")
gtstatus = {'name':'locked'} # id should be autoincr, name should be unique
url = base_url + '/gtstatus'
r = requests.post(url = url, headers=headers, json=gtstatus)
print(r.json())
gtstatus = {'name':'unlocked'} # id should be autoincr, name should be unique
url = base_url + '/gtstatus'
r = requests.post(url = url, headers=headers, json=gtstatus)
print(r.json())

# Create a global tag object - this should be QUITE rare
print("Create Global Tag Object")
gt = {
Expand Down

0 comments on commit 61395c5

Please sign in to comment.