Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
More polish stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilman committed Nov 7, 2010
1 parent bd2440d commit b61aaeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ When using the JSON interface, you may notice a lot of posts posted by SILENT!AB

This script looks at `subject.txt` and counts how many posts there should be. If you suspect your database is screwy, run it and compare that to the number of posts you have. Note that `subject.txt`'s tally includes deleted posts, so the script is fairly pointless if you aren't using the JSON interface. It takes optional `--base-url` and `--board` arguments, same as /prog/scrape.

#### rewind.py - /prog/ was never good

Given a /prog/scrape database this script launches a webserver and lets you view the state of /prog/ given any date.

## Bugs and feature requests

Expand Down
5 changes: 3 additions & 2 deletions rewind.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ def log_request(foo,bar):
if __name__ == '__main__':
server_class = BaseHTTPServer.HTTPServer
httpd = server_class(('', PORT_NUMBER), MyHandler)
print "rewind.py [--faggot-dates] [--port=n] [prog.db]"
print "Browse to http://localhost:%d/" % PORT_NUMBER
print "It may take 20 seconds or more to generate the front page."
try:
print "Browse to http://localhost:%d/" % PORT_NUMBER
print "It may take 20 seconds or more to generate the front page."
httpd.serve_forever()
except KeyboardInterrupt:
pass
Expand Down

0 comments on commit b61aaeb

Please sign in to comment.