##// END OF EJS Templates
Administration for sync sources. Now sync is available from the admin site instead of manual command line arguments. Still need to invoke sync_with_server by cron/timer
Administration for sync sources. Now sync is available from the admin site instead of manual command line arguments. Still need to invoke sync_with_server by cron/timer

File last commit:

r2123:be532800 default
r2123:be532800 default
Show More
sync_with_server.py
13 lines | 321 B | text/x-python | PythonLexer
from django.core.management import BaseCommand
from boards.models.source import SyncSource
__author__ = 'neko259'
class Command(BaseCommand):
help = 'Send a sync or get request to the servers.'
def handle(self, *args, **options):
for source in SyncSource.objects.all():
source.run_sync()