Last active
December 12, 2015 03:08
-
-
Save koo5/4703971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
otherwise if path is "/post": | |
if method is "post": | |
if there is an id of user in table of users: | |
let old nick be nick corresponding to id of user in table of users; | |
if old nick is not user nick:[user changed googleID nickname] | |
say "old nick: [old nick], new nick: [user nick], updating nick...[line break]"; | |
choose row with id of user in table of users; | |
now nick corresponding to id of user in table of users is user nick; | |
write file of users from table of users; | |
else: | |
say "adding new user[line break]"; | |
choose a blank row in table of users; | |
now id entry is user; | |
now nick entry is user nick; | |
write file of users from table of users; | |
[] | |
choose a blank row in table of posts; | |
now user entry is user; | |
now time entry is time; | |
now content entry is content; | |
now subject entry is subject; | |
now blank posts is blank posts - 1; | |
write file of posts from table of posts; | |
return "<b>Sent!</b><br>[line break]"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment