mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-13 10:29:52 +01:00
Prime hotfix
This commit is contained in:
@@ -295,3 +295,8 @@ _[]Appointment_ (POST/DELETE)
|
||||
}
|
||||
]
|
||||
```
|
||||
### User data
|
||||
| Method | Route | Description | Response | Parameter | Header | POST-Body |
|
||||
| - | - | - | - | - | - | - |
|
||||
| GET | /api/userdata/{user}/{key} | User data holen | | {user} = MAL username; {key} = Key der data | X-HUSO-AUTH | Plaintext(binary) data |
|
||||
| PUT | /api/userdata/{user}/{key} | User data setzen | Plaintext(binary) data | {user} = MAL username; {key} = Key der data | X-HUSO-AUTH | |
|
||||
|
||||
@@ -28,7 +28,7 @@ func Arbeit() {
|
||||
} else {
|
||||
cleared := 0
|
||||
for _, a := range appoints {
|
||||
if a.Time.Add(time.Hour * 22).Before(time.Now()) {
|
||||
if a.Time.Add(22 * time.Hour).Before(time.Now()) {
|
||||
// appointment expired
|
||||
keyBytes := Int64AndDateToBytes(a.Anime, a.Time)
|
||||
err = DbDelete(bucketAppoint, string(keyBytes))
|
||||
@@ -38,7 +38,7 @@ func Arbeit() {
|
||||
} else {
|
||||
cleared++
|
||||
}
|
||||
} else if time.Now().Before(a.Time) && time.Now().Add(time.Hour).After(a.Time) {
|
||||
} else if time.Now().Add(4*time.Minute).Before(a.Time) && time.Now().Add(33*time.Minute).After(a.Time) {
|
||||
// This has not happened and is happening soon
|
||||
AnnounceAppointmentSoon(&a)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user