mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-03-03 12:57:36 +08:00
Remove redundant padding insert in TryAddSeedCompletion
This commit is contained in:
parent
35641e420b
commit
beb829d20f
@ -1,12 +1,6 @@
|
||||
package db
|
||||
|
||||
func TryAddSeedCompletion(uuid []byte, seed string, mode int) (bool, error) {
|
||||
if len(seed) < 24 {
|
||||
for range 24 - len(seed) {
|
||||
seed += "0"
|
||||
}
|
||||
}
|
||||
|
||||
var count int
|
||||
err := handle.QueryRow("SELECT COUNT(*) FROM seedCompletions WHERE uuid = ? AND seed = ?", uuid, seed).Scan(&count)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user