Ulysses Lara
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
sapl/base/views.py
-
scripts/gerar_hash_proposicoes.py
|
|
@ -2065,7 +2065,7 @@ class AppConfigCrud(CrudAux): |
|
|
|
recibo_prop_atual = AppConfig.objects.last().receber_recibo_proposicao |
|
|
|
recibo_prop_novo = self.request.POST['receber_recibo_proposicao'] |
|
|
|
if recibo_prop_novo == 'False' and recibo_prop_atual: |
|
|
|
props = Proposicao.objects.filter(hash_code='').exclude(data_envio__isnull=True) |
|
|
|
props = Proposicao.objects.filter(hash_code='', data_recebimento__isnull=True).exclude(data_envio__isnull=True) |
|
|
|
for prop in props: |
|
|
|
try: |
|
|
|
self.gerar_hash(prop) |
|
|
|
|
|
@ -20,7 +20,7 @@ def gerar_hash(proposicao): |
|
|
|
def gerar_hash_proposicoes(): |
|
|
|
di = datetime.now() |
|
|
|
print(di) |
|
|
|
props = Proposicao.objects.filter(hash_code='').exclude(data_envio__isnull=True) |
|
|
|
props = Proposicao.objects.filter(hash_code='', data_recebimento__isnull=True).exclude(data_envio__isnull=True) |
|
|
|
print("Total de proposicoes: %s" % props.count()) |
|
|
|
for prop in props: |
|
|
|
try: |
|
|
|