aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 0f7c8445..4803c9b8 100644
--- a/models/models.go
+++ b/models/models.go
@@ -116,7 +116,7 @@ func UidToUint32(uid UID) uint32 {
}
func Uint32ToUid(u uint32) UID {
- return UID(strconv.FormatUint(uint64(u), 10))
+ return UID(fmt.Sprintf("%012d", u))
}
func UidToUint32List(uids []UID) []uint32 {