olin-build / ABE

Amorphous Blob of Events
https://abe.olin.build/
GNU Affero General Public License v3.0
7 stars 1 forks source link

Fix deprecation warnings #181

Closed osteele closed 6 years ago

osteele commented 6 years ago
$ python -m unittest
/Users/osteele/code/htl2/abe/.direnv/python-3.6.5/lib/python3.6/site-packages/mongoengine/document.py:428: DeprecationWarning: save is deprecated. Use insert_one or
replace_one instead
  object_id = collection.save(doc, **write_concern)
/Users/osteele/code/htl2/abe/.direnv/python-3.6.5/lib/python3.6/site-packages/werkzeug/local.py:347: DeprecationWarning: Request.is_xhr is deprecated. Given that the
 X-Requested-With header is not a part of any spec, it is not reliable
  return getattr(self._get_current_object(), name)
../Users/osteele/code/htl2/abe/.direnv/python-3.6.5/lib/python3.6/site-packages/mongoengine/queryset/queryset.py:51: DeprecationWarning: generator 'QuerySet._iter_re
sults' raised StopIteration
  list(self._iter_results())
osteele commented 6 years ago

The remaining warnings are from mongoengine: