Changes between Version 15 and Version 16 of DbDumpScript


Ignore:
Timestamp:
04/09/2010 08:58:23 PM (5 years ago)
Author:
newacct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DbDumpScript

    v15 v16  
    165165            s.append(a)
    166166            try:
    167                 j = s.index(b)
    168                 del s[j]
     167                s.remove(b)
    169168                s.append(b)
    170169            except:
     
    180179                order(s, (tname, table))
    181180
    182     n = []
    183     for k in models:
    184         if s.count(k) == 0:
    185             n.append(k)
     181    n = [k for k in models if k not in s]
    186182           
    187183    return [models[k] for k in s+n]
Back to Top