Skip to content

Commit

Permalink
[chores] Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
NoumbissiValere committed Dec 21, 2020
1 parent 4ee3366 commit 3b97ed7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -20,7 +20,6 @@ addons:
- spatialite-bin
- libsqlite3-mod-spatialite


services:
- redis-server

Expand Down
2 changes: 1 addition & 1 deletion owm_legacy/__init__.py
@@ -1,4 +1,4 @@
VERSION = (0, 5, 1, 'final')
VERSION = (0, 4, 1, 'final')
__version__ = VERSION # alias


Expand Down
2 changes: 1 addition & 1 deletion owm_legacy/tests.py
Expand Up @@ -57,7 +57,7 @@ def test_status(self):
c = self._create_config()
self.client.get(reverse('owm_legacy:get_config', args=[c.mac_address]))
c.refresh_from_db()
self.assertEqual(c.status, 'modified')
self.assertEqual(c.status, 'applied')

def test_forbidden_ip(self):
ALLOWED_SUBNETS.remove('127.0.0.1/32')
Expand Down
2 changes: 1 addition & 1 deletion owm_legacy/views.py
Expand Up @@ -26,5 +26,5 @@ def get_config(request, mac_address):
"""
forbid_unallowed(request)
config = get_object_or_404(Config, device__mac_address__iexact=mac_address)
config.set_status_modified(save=False)
config.set_status_applied()
return send_device_config(config, request)

0 comments on commit 3b97ed7

Please sign in to comment.