Skip to content

Commit

Permalink
Expecting Postgres URI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezzsim committed Nov 30, 2023
1 parent 85b541c commit e02ac75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Usage: generate_sample_data.py DATABASE_URI

import sys
import random
from tiled.catalog import from_uri
from tiled.client import Context, from_context
from tiled.server.app import build_app
Expand All @@ -15,7 +14,7 @@
# Write data
for i in range(10000):
client.write_array(
[random.randint(1, 1500),random.randint(12, 650),random.randint(3, 2500)],
[],
metadata={
"number": i,
"number_as_string": str(i),
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_tiled.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e

tiled catalog init TILED_TEST_POSTGRESQL_URI
pwd
python scripts/generate_data.py "http://localhost:8000"
python scripts/generate_data.py TILED_TEST_POSTGRESQL_URI

0 comments on commit e02ac75

Please sign in to comment.