Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mibs510 committed Jul 13, 2023
2 parents e588cae + 3094eaa commit 3b475f0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

<!--next-version-placeholder-->

## v1.0.2 (2023-07-12)

### Fix

* **README.md + cache_service:** Update last_seen ([`4263822`](https://github.com/mibs510/OpenALPR-Webhook/commit/4263822380a946d8cdf32ec6fbf4509dcad8e7c9))

## v1.0.1 (2023-07-12)

### Fix
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,14 @@ WantedBy=multi-user.target

Be sure to modify `User`, `WorkingDirectory`, and `ExecStart`.

`User` should not have root privileges without invoking sudo!
> ⚠️ `User` should not have root privileges without invoking sudo!
Then execute:

`sudo systemctl daemon-reload`

`sudo systemctl enable oalpr-wh`

`sudo systemctl start oalpr-wh`

```shell
sudo systemctl daemon-reload
sudo systemctl enable oalpr-wh
sudo systemctl start oalpr-wh
```
Optional: `journalctl -n 50 -f`

### New Instance
Expand Down
2 changes: 2 additions & 0 deletions apps/api/service/cache_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def update(self):
else:
# Always overwrite the label, it may have changed
agent_uid.agent_label = self.request['web_server_config']['agent_label']
agent_uid.last_seen = datetime.utcnow()
agent_uid.save()

# Cameras
Expand All @@ -107,6 +108,7 @@ def update(self):
else:
# Always overwrite the label, it may have changed
camera_id.camera_label = self.request['web_server_config']['camera_label']
camera_id.last_seen = datetime.utcnow()
camera_id.save()

# Check to see if we need to send an alert
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.0.2"

0 comments on commit 3b475f0

Please sign in to comment.