mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Fix for bug #852422.
This commit is contained in:
parent
2f1c8415b6
commit
5549322771
@ -1,3 +1,5 @@
|
|||||||
|
* Fixed Http.freshmeat for projects with a space in their names.
|
||||||
|
|
||||||
* Added Karma.most for determining various "mosts" in the Karma
|
* Added Karma.most for determining various "mosts" in the Karma
|
||||||
database.
|
database.
|
||||||
|
|
||||||
|
@ -87,6 +87,7 @@ class Http(callbacks.Privmsg):
|
|||||||
Returns Freshmeat data about a given project.
|
Returns Freshmeat data about a given project.
|
||||||
"""
|
"""
|
||||||
project = privmsgs.getArgs(args)
|
project = privmsgs.getArgs(args)
|
||||||
|
project = ''.join(project.split())
|
||||||
url = 'http://www.freshmeat.net/projects-xml/%s' % project
|
url = 'http://www.freshmeat.net/projects-xml/%s' % project
|
||||||
try:
|
try:
|
||||||
text = webutils.getUrl(url)
|
text = webutils.getUrl(url)
|
||||||
|
@ -38,6 +38,7 @@ class HttpTest(PluginTestCase, PluginDocumentation):
|
|||||||
|
|
||||||
def testFreshmeat(self):
|
def testFreshmeat(self):
|
||||||
self.assertNotError('freshmeat supybot')
|
self.assertNotError('freshmeat supybot')
|
||||||
|
self.assertNotError('freshmeat My Classifieds')
|
||||||
self.assertNotRegexp('freshmeat supybot', 'DOM Element')
|
self.assertNotRegexp('freshmeat supybot', 'DOM Element')
|
||||||
|
|
||||||
def testTitle(self):
|
def testTitle(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user