Commit b51b963f authored by luxcem's avatar luxcem
Browse files

Moves fix mandates active commands to memopol

parent 6febaf6d
import datetime
from import BaseCommand
from representatives.models import Mandate
from django.db import transaction
class Command(BaseCommand):
def handle(self, *args, **options):
date =
mandates = Mandate.objects.all()
n = len(mandates)
for i, mandate in enumerate(mandates): = mandate.end_date > date
print("%s/%s\r" % (i, n)),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment