mirror of
https://github.com/PretendoNetwork/super-mario-maker.git
synced 2026-08-02 08:32:15 -05:00
10 lines
240 B
Go
10 lines
240 B
Go
package database
|
|
|
|
import "log"
|
|
|
|
func IncrementCourseStarCount(courseID uint64) {
|
|
if err := cassandraClusterSession.Query(`UPDATE pretendo_smm.ratings SET stars=stars+1 WHERE data_id=?`, courseID).Exec(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|