Skip to content

Commit

Permalink
Change the history sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
K-cermak committed Feb 7, 2025
1 parent 2ed2781 commit 962bee9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitIgnore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
/private
/TODO.md
/images

*.exe
*.exe~
Expand Down
3 changes: 2 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIE
- [Enplated Framework](https://enplated.karlosoft.com/framework)
- [modernc.org/sqlite](https://pkg.go.dev/modernc.org/sqlite)
- [pro-bing](https://github.com/prometheus-community/pro-bing)
- [go-chi](https://github.com/go-chi/chi)
- [go-chi](https://github.com/go-chi/chi)
- [FlatIcon.com](https://www.flaticon.com/)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd UptimeKumaProbe/scripts
sudo ./install.sh
```

- If this last command fails, try run:
- If the last command fails, try run:
```chmod +x install.sh```

- Tip: You can now remove the `UptimeKumaProbe` directory.
Expand All @@ -39,5 +39,5 @@ cd UptimeKumaProbe/scripts
sudo ./uninstall.sh
```

- If this last command fails, try run:
- If the last command fails, try run:
```chmod +x uninstall.sh```
2 changes: 1 addition & 1 deletion cli/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func GetScanRes(scanName string, start string, end string) []helpers.ScanRes {
SELECT generated, passed
FROM history
WHERE scan_name = ? AND generated BETWEEN ? AND ?
ORDER BY generated DESC;
ORDER BY generated ASC;
`

rows, err := DB.Query(query, scanName, start, end)
Expand Down

0 comments on commit 962bee9

Please sign in to comment.