<s> from juno import * <EOL> Person = model ( '<STR_LIT>' , name = '<STR_LIT:str>' , views = '<STR_LIT:int>' ) <EOL> @ route ( '<STR_LIT>' ) <EOL> def makeperson ( web , name ) : <EOL> exist = Person . find ( ) . filter ( Person . name == name ) <EOL> if exist . count ( ) != <NUM_LIT:0> : return '<STR_LIT>' <EOL> p = Person ( name = name , views = <NUM_LIT:0> ) . save ( ) <EOL> return '<STR_LIT>' <EOL> @ route ( '<STR_LIT>' ) <EOL> def getperson ( web , name ) : <EOL> exist = Person . find ( ) . filter ( Person . name == name ) . all ( ) <EOL> if len ( exist ) == <NUM_LIT:0> : return '<STR_LIT>' <EOL> p = exist [ <NUM_LIT:0> ] <EOL> p . views += <NUM_LIT:1> <EOL> p . save ( ) <EOL> return '<STR_LIT>' % p . views <EOL> run ( ) </s>
