mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
r
This commit is contained in:
@@ -230,7 +230,7 @@ func trackVisit(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
// Reset weekly visits on Monday
|
||||
if stats.LastUpdated.Weekday() != time.Now().Weekday() {
|
||||
if time.Now().Weekday() == time.Monday && stats.LastUpdated.Weekday() != time.Monday {
|
||||
stats.WeeklyVisits = 1
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ func trackVisit(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
|
||||
|
||||
// Helper function to extract OS from User-Agent
|
||||
func getOSFromUserAgent(userAgent string) string {
|
||||
|
||||
Reference in New Issue
Block a user