Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm committed Mar 12, 2024
1 parent 849658e commit dffd5d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions v.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def main():
)

# select attribute values with vector_db_select()
grass.message(_("Print attribute values using %s") % "vector_db_select()")
grass.message(
_("Print attribute values using %s") % "vector_db_select()"
)
column_values = grass.vector_db_select(
aoi_vector, int(layer), columns=column
)
Expand All @@ -162,7 +164,7 @@ def main():
print(column_values["values"][key][0])

# select attribute values with SQL statement
grass.message(_("Print attribute values using %s") % "db_select()")
grass.message(_("Print attribute values using %s") % "db_select()")
sql = f"select {column} from {table}"
values = grass.db_select(sql=sql, database=database, driver=driver)
for value in values:
Expand Down

0 comments on commit dffd5d4

Please sign in to comment.