Skip to content

Commit

Permalink
[C] change alert sources to percents
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed May 16, 2024
1 parent 7704b8d commit 1cbee76
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ clean-images:
# Requires argument `dbname` to specify the name of the new DB, usage: `make local-db dbname=my_db dbfile=mydb.sql`
# Requires argument `dbfile` to specify the name of the DB dump file to recreate, usage: `make local-db dbname=my_db dbfile=mydb.sql`
local-db:
cd db && docker exec --workdir / investigations-api-postgres-1 psql -U craft -c "create database $(dbname);"
cd db && docker exec --workdir / investigations-api-postgres-1 psql -U craft -d $(dbname) -f $(dbfile)
cd db && docker exec --workdir / investigations-api_postgres_1 psql -U craft -d postgres -c "create database $(dbname);"
cd db && docker exec --workdir / investigations-api_postgres_1 psql -U craft -d $(dbname) -f $(dbfile)
echo "\n\n\n\nDon't forget to update your docker-compose-local-db.yaml with the DB name: $(dbname)"

db-list:
cd db && docker exec --workdir / investigations-api-postgres-1 psql -U craft -c "SELECT (pg_stat_file('base/'||oid ||'/PG_VERSION')).modification, datname FROM pg_database;"
cd db && docker exec --workdir / investigations-api_postgres_1 psql -U craft -d postgres -c "SELECT (pg_stat_file('base/'||oid ||'/PG_VERSION')).modification, datname FROM pg_database;"

cloud-db-list:
curl https://us-central1-edc-prod-eef0.cloudfunctions.net/sql-helper/databases\?project\=investigations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,22 @@ fields:
type: craft\fields\Dropdown
25c0fbe7-5180-4842-bb9e-d530e9fb2042: # Radius
columnSuffix: ccyxspge
contentColumnType: integer(10)
contentColumnType: smallint(3)
fieldGroup: null
handle: radius
instructions: 'Radius of the circle around the source after it is selected'
instructions: 'Radius of the circle around the source after it is selected, measured in percent of the image width'
name: Radius
searchable: false
settings:
decimals: 0
defaultValue: 20
max: null
defaultValue: 5
max: 100
min: 0
prefix: null
previewCurrency: null
previewFormat: decimal
size: null
suffix: null
suffix: '%'
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Expand All @@ -173,43 +173,43 @@ fields:
type: craft\fields\PlainText
b23a622a-4c70-4e4d-be4a-3b2fbc739d19: # Y
columnSuffix: cdbznkuo
contentColumnType: integer(10)
contentColumnType: smallint(3)
fieldGroup: null
handle: yCoord
instructions: 'Y position, in pixels, of this source on its alert image measured from the upper left corner'
instructions: 'Y position, in percent, of this source on its alert image measured from the upper left corner'
name: 'Y'
searchable: false
settings:
decimals: 0
defaultValue: null
max: null
min: null
max: 100
min: 0
prefix: null
previewCurrency: null
previewFormat: none
size: null
suffix: null
suffix: '%'
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
f7469ef4-1cc6-4236-9a47-b0a7cad50b6a: # X
columnSuffix: exfsorqh
contentColumnType: integer(10)
contentColumnType: smallint(3)
fieldGroup: null
handle: xCoord
instructions: 'X position, in pixels, of this source on its alert image measured from the upper left corner'
instructions: 'X position, in percent, of this source on its alert image measured from the upper left corner'
name: X
searchable: false
settings:
decimals: 0
defaultValue: null
max: null
min: null
max: 100
min: 0
prefix: null
previewCurrency: null
previewFormat: none
size: null
suffix: null
suffix: '%'
translationKeyFormat: null
translationMethod: none
type: craft\fields\Number
Expand Down
2 changes: 1 addition & 1 deletion api/config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1715193932
dateModified: 1715730427
elementSources:
craft\elements\Entry:
-
Expand Down

0 comments on commit 1cbee76

Please sign in to comment.