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):
367367 for k , v in module_lookup .items ()), body ))
368368 if python_filename is None :
369369 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 )
373372
374373 def list_tables (self ):
375374 """
376375 Return a list of all tables in the schema except tables with ~ in first character such
377376 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.
379378 """
380-
381379 return [table_name for (table_name ,) in self .connection .query ("""
382380 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 , ))]
384382
385383
386384class VirtualModule (types .ModuleType ):
You can’t perform that action at this time.
0 commit comments