Changeset 2486 for lang/python/81kun

Show
Ignore:
Timestamp:
12/05/07 18:18:04 (13 months ago)
Author:
nishio
Message:

/lang/python/81kun/ 81kun--でルール発火率を半分に。即座にデータベースをリロードしてキャッシュされたルールを更新。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/python/81kun/actions/__init__.py

    r2482 r2486  
    113113def dec(self, e): 
    114114    r = models.Regexp.objects.get(id=env.prev_regexp) 
    115     r.thru_ratio *= 0.9 
     115    r.thru_ratio *= 0.5 
    116116    r.save() 
     117    env.__init__() 
    117118    self.say("自重します…")