File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -367,20 +367,18 @@ def replace(s):
367
367
for k , v in module_lookup .items ()), body ))
368
368
if python_filename is None :
369
369
return python_code
370
- else :
371
- with open (python_filename , 'wt' ) as f :
372
- f .write (python_code )
370
+ with open (python_filename , 'wt' ) as f :
371
+ f .write (python_code )
373
372
374
373
def list_tables (self ):
375
374
"""
376
375
Return a list of all tables in the schema except tables with ~ in first character such
377
376
as ~logs and ~job
378
- :return: A list of table names in their raw datajoint naming convection form
377
+ :return: A list of table names from the database schema.
379
378
"""
380
-
381
379
return [table_name for (table_name ,) in self .connection .query ("""
382
380
SELECT table_name FROM information_schema.tables
383
- WHERE table_schema = %s and table_name NOT LIKE '~%%'""" , args = (self .database ))]
381
+ WHERE table_schema = %s and table_name NOT LIKE '~%%'""" , args = (self .database , ))]
384
382
385
383
386
384
class VirtualModule (types .ModuleType ):
You can’t perform that action at this time.
0 commit comments