Minor changes
This commit is contained in:
parent
2b03ba6cc6
commit
32d7378e87
2
main.go
2
main.go
@ -72,7 +72,7 @@ func configure(app *aero.Application) *aero.Application {
|
|||||||
|
|
||||||
// TODO: ...
|
// TODO: ...
|
||||||
// app.Sessions.Store = aerospikestore.New(arn.DB, "Session", app.Sessions.Duration)
|
// app.Sessions.Store = aerospikestore.New(arn.DB, "Session", app.Sessions.Duration)
|
||||||
app.Sessions.Store = nanostore.New(arn.DB, "Session")
|
app.Sessions.Store = nanostore.New(arn.DB.Collection("Session"))
|
||||||
|
|
||||||
// Layout
|
// Layout
|
||||||
app.Layout = layout.Render
|
app.Layout = layout.Render
|
||||||
|
@ -7,6 +7,6 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
color.Yellow("Deleting all sessions...")
|
color.Yellow("Deleting all sessions...")
|
||||||
arn.DB.DeleteTable("Session")
|
arn.DB.Clear("Session")
|
||||||
color.Green("Finished.")
|
color.Green("Finished.")
|
||||||
}
|
}
|
||||||
|
19
patches/nano-test/main.go
Normal file
19
patches/nano-test/main.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/animenotifier/arn"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
defer arn.Node.Close()
|
||||||
|
|
||||||
|
user, _ := arn.GetUserByNick("Akyoto")
|
||||||
|
|
||||||
|
if user.Language == ":)" {
|
||||||
|
user.Language = ":("
|
||||||
|
} else {
|
||||||
|
user.Language = ":)"
|
||||||
|
}
|
||||||
|
|
||||||
|
user.Save()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user