瀏覽代碼

db.droptable: fix it using the new behaviour of db_table_in_vector

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62846 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 10 年之前
父節點
當前提交
e704141de9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/db.droptable/db.droptable.py

+ 1 - 1
scripts/db.droptable/db.droptable.py

@@ -75,7 +75,7 @@ def main():
 
     # check if table is used somewhere (connected to vector map)
     used = grass.db.db_table_in_vector(table)
-    if len(used) > 0:
+    if used:
         grass.warning(_("Deleting table <%s> which is attached to following map(s):") % table)
         for vect in used:
             grass.warning("%s" % vect)