Skip to content

Commit

Permalink
Fixed the Chartbeat UID not being placed in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
citruspi committed Feb 29, 2016
1 parent 4cd8849 commit 5fd7aba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flask_analytics/providers/chartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def template(self):
return """<script type="text/javascript">
var _sf_async_config={{}};
/** CONFIGURATION START **/
_sf_async_config.uid = {uid}; /** CHANGE THIS **/
_sf_async_config.uid = "{uid}"; /** CHANGE THIS **/
_sf_async_config.domain = "{domain}"; /** CHANGE THIS **/
/** CONFIGURATION END **/
(function(){{
Expand Down
4 changes: 2 additions & 2 deletions test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_chartbeat(self):
expected = """<script type="text/javascript">
var _sf_async_config={};
/** CONFIGURATION START **/
_sf_async_config.uid = uiP3eeKie6ohDo6; /** CHANGE THIS **/
_sf_async_config.uid = "uiP3eeKie6ohDo6"; /** CHANGE THIS **/
_sf_async_config.domain = "eeda8Otheefu5qu"; /** CHANGE THIS **/
/** CONFIGURATION END **/
(function(){
Expand Down Expand Up @@ -208,7 +208,7 @@ def test_all(self):
<script type="text/javascript">
var _sf_async_config={};
/** CONFIGURATION START **/
_sf_async_config.uid = uiP3eeKie6ohDo6; /** CHANGE THIS **/
_sf_async_config.uid = "uiP3eeKie6ohDo6"; /** CHANGE THIS **/
_sf_async_config.domain = "eeda8Otheefu5qu"; /** CHANGE THIS **/
/** CONFIGURATION END **/
(function(){
Expand Down

0 comments on commit 5fd7aba

Please sign in to comment.