This website works better with JavaScript.
Home
Contact
Status
Help
Register
Sign In
nemo
/
opml-gen
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Expire starred lists after 1 day
master
Nemo
2 years ago
parent
87ec543f84
commit
6831d9af98
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app.rb
+ 2
- 0
app.rb
View File
@ -43,6 +43,8 @@ class MyApp < Sinatra::Base
time
=
Time
.
now
.
to_i
settings
.
r
.
set
"
#{
user
}
.repos
"
,
repos
settings
.
r
.
set
"
#{
user
}
.repos.time
"
,
time
# Keep the starred repo list for 1 day
settings
.
r
.
expire
"
#{
user
}
.repos
"
,
60
*
60
*
24
[
repos
,
time
]
end
Write
Preview
Loading…
Cancel
Save