Skip to content
Snippets Groups Projects
Commit e3417bbb authored by Erik Johnston's avatar Erik Johnston
Browse files

Revert needless change to storage.profile

parent 2492efb1
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from twisted.internet import defer
from ._base import SQLBaseStore
......@@ -26,17 +24,14 @@ class ProfileStore(SQLBaseStore):
desc="create_profile",
)
@defer.inlineCallbacks
def get_profile_displayname(self, user_localpart):
name = yield self._simple_select_one_onecol(
return self._simple_select_one_onecol(
table="profiles",
keyvalues={"user_id": user_localpart},
retcol="displayname",
desc="get_profile_displayname",
)
defer.returnValue(name)
def set_profile_displayname(self, user_localpart, new_displayname):
return self._simple_update_one(
table="profiles",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment