Author: poeml
Date: Fri Jan 31 01:58:47 2014
New Revision: 8351

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8351&view=rev
Log:
mb dirs:
- When using the -d or --missing option, only enabled mirrors are shown
  now. Thanks Florian! (issue #116)

Modified:
    trunk/mb/mb/files.py

Modified: trunk/mb/mb/files.py
URL: 
http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb/files.py?rev=8351&r1=8350&r2=8351&view=diff
==============================================================================
--- trunk/mb/mb/files.py        (original)
+++ trunk/mb/mb/files.py        Fri Jan 31 01:58:47 2014
@@ -140,9 +140,9 @@
     if not mirror_ids:
         return []
     if not missing:
-        query = """select identifier from server where id in (%s)""" % 
','.join(mirror_ids)
+        query = """select identifier from server where enabled and id in 
(%s)""" % ','.join(mirror_ids)
     else:
-        query = """select identifier from server where id not in (%s)""" % 
','.join(mirror_ids)
+        query = """select identifier from server where enabled and id not in 
(%s)""" % ','.join(mirror_ids)
     result = conn.Server._connection.queryAll(query)
 
     return result




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
        unsubscribe
to the address mirrorbrain-commits-requ...@mirrorbrain.org

Reply via email to