#429 Bad bad typo
Merged 4 years ago by mprahl. Opened 4 years ago by gnaponie.
gnaponie/greenwave baderror  into  master

file modified
+1 -1
@@ -227,7 +227,7 @@ 

              'subject_identifier': subject_identifier

          }

          if when:

-             d['since']: '1900-01-01T00:00:00.000000,{}'.format(when)

+             d['since'] = '1900-01-01T00:00:00.000000,{}'.format(when)

          filters.append(d)

      response = requests_session.post(

          current_app.config['WAIVERDB_API_URL'] + '/waivers/+filtered',

no initial comment

Pull-Request has been merged by mprahl

4 years ago

Soooo, how does colon work when used like that? Looks like strange type hint/annotation. I thought those should lead to less errors, not more! :)

It doesn't work! :D
It was there because I changed this:
d.update({'since': '1900-01-01T00:00:00.000000,{}'.format(when)})
(that only me likes it).
To:
d['since'] = '1900-01-01T00:00:00.000000,{}'.format(when)
but I forgot to change the colon.

Metadata